module.exports = (req, res, next) => {
    let url = req.url;
    if (url == '/comment' && req.session.username == null) {
        res.redirect('/admin/login');
    } else {
        next();
    }
}